package com.yyn.vod.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class GetUser implements InitializingBean {
    @Value("${aliyun.vod.file.keyid}")
    private  String keyid;
    @Value("${aliyun.vod.file.keysecret}")
    private  String keysecret;
    //定义公共静态常量
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID=keyid;
        ACCESS_KEY_SECRET=keysecret;
    }
}
